package com.bdmc.report.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.common.convert.LocalDateTimeConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

;

/**
 * 车辆油量统计视图对象 report_car_oil
 *
 * @author bdmc
 * @date 2022-08-10
 */
@Data
@ExcelIgnoreUnannotated
public class ReportCarOilVo {

	private static final long serialVersionUID = 1L;

	/**
	 * 部门名称
	 */
	@ExcelProperty(value = "所属部门")
	private String deptName;

    /**
     * 主键
     */
	private Long oilId;

    /**
     * 车辆id
     */
	private Long carId;

	/**
	 * 车牌号
	 */
	@ExcelProperty(value = "车牌号")
	private String carNum;

    /**
     * 数据时间
     */
	@ExcelProperty(value = "数据时间", converter = LocalDateTimeConverter.class)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime dataTime;

    /**
     * 当前油量
     */
	@ExcelProperty(value = "当前油量")
	private BigDecimal carOil;

    /**
     * 油量变化
     */
	@ExcelProperty(value = "油量变化")
	private BigDecimal oilChanged;

    /**
     * 平均油量消耗
     */
	@ExcelProperty(value = "平均油量消耗")
	private BigDecimal oilMean;



}
